
echo "install reflector"
pacman -S reflector


echo "start update mirrors"
reflector -p https -c China --delay 3 --completion-percent 95 --sort rate --save /etc/pacman.d/mirrorlist

echo "mirrors Already update"

echo "config pacman.conf"
cp pacman.conf /etc/pacman.conf
echo "done"

echo "update base"

pacman -Sy
